package kr.co.doriclassic.pro07_05;

import java.util.Scanner;

class Word{
	private String sInpWorld;
	public Word(String sInpWord) {
		this.sInpWorld = sInpWord;
	}
	
	public void reversWord(){
		for(int i=sInpWorld.length();i>0;i--)
			System.out.print(sInpWorld.charAt(i-1));
	}
}

public class Pro07_05{
	public static void main(String[] args) {
		String sWord;
		Scanner sc = new Scanner(System.in);
		System.out.print("문자열을 입력하시오:");
		sWord = sc.nextLine();
		
		Word w = new Word(sWord);
		w.reversWord();
	}
}